package com.linchaoen.elema.service.impl;

import com.linchaoen.elema.mapper.TestMapper;
import com.linchaoen.elema.model.entity.Test;
import com.linchaoen.elema.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class TestServiceImpl implements TestService {

    @Autowired
    private TestMapper testMapper;


    @Override
    @Transactional
    public int saveBatch(List<Test> testList) {
        return testMapper.saveBatch(testList);
    }
}
